package com.ruyi.afterdemo.po;


import com.example.comm.comm.PoExtender;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

//import javax.persistence.Id;


/**
 * 计划事情表
 *
 * @author Raines
 */
@Entity
@Table(name = "m_diary", schema = "application", catalog = "")
@NamedQuery(name = "MDiaryPlan.findAll", query = "SELECT t FROM MDiary t")
public class MDiaryPlan extends PoExtender implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;

    private String name;

    //主要事情
    @Column(name = "content_things")
    private String contentThings;

    //开始时间
    @Column(name = "start_time")
    private Timestamp startTime;

    //结束时间
    @Column(name = "end_time")
    private Timestamp endTime;

    //消耗时间(分钟)
    @Column(name = "consume_time")
    private String consumeTime;

    //附加事情
    @Column(name = "additional_things")
    private String additionalThings;

    //为什么做此事
    private String why;

    //权重
    private String weight;

    //此事的完成状态(1完成,-1未完成)
    private Integer state;

    @Column(name = "create_time")
    private Timestamp createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContentThings() {
        return contentThings;
    }

    public void setContentThings(String contentThings) {
        this.contentThings = contentThings;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public String getConsumeTime() {
        return consumeTime;
    }

    public void setConsumeTime(String consumeTime) {
        this.consumeTime = consumeTime;
    }

    public String getAdditionalThings() {
        return additionalThings;
    }

    public void setAdditionalThings(String additionalThings) {
        this.additionalThings = additionalThings;
    }

    public String getWhy() {
        return why;
    }

    public void setWhy(String why) {
        this.why = why;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}